package core;

public class Actuators {

	private static final class Holder extends ThreadLocal<Actuators> {
		@Override
		protected Actuators initialValue() {
			return new Actuators();
		}
	}

	private static final Holder holder = new Holder();

	private Actuators(){
	}
	
	public static synchronized void setMotors(int left, int right){
		if(Bridge.request("D,"+left+","+right).compareTo("d") != 0){
			System.err.println("Error setting motors: "+left+" "+right);
		}
	}
}
